package com.ztf.employee;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/*
 * 1.配置数据源
 * 2.整合mybatis puls
 * ①主启动类扫描mapper接口
 * ②配置mapperxml文件位置
 * */
@EnableDiscoveryClient
@MapperScan("com.ztf.employee.dao")
@SpringBootApplication
public class EmployeeApplication {

    public static void main(String[] args) {
        SpringApplication.run(EmployeeApplication.class, args);
    }

}
